﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master"   ValidateRequest="false" AutoEventWireup="true" CodeBehind="InsertQuestion.aspx.cs" Inherits="Votations.NSurvey.WebAdmin.InsertQuestion" %>
<%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentLinkAction" runat="server">
<a href="surveycontentbuilder.aspx?&surveyid=<%=SurveyId %>>&menuindex=">返回调查</a>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentTitle" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">
<LINK href="css/nsurveyadmin.css" type=text/css rel=stylesheet >
 <table class=TableLayoutContainer cellSpacing=0 cellPadding=0>
  <tr>
    <td></td></tr>
  <tr>
    <td class=contentCell vAlign=top><asp:label id=MessageLabel runat="server" Visible="False" ForeColor="Green"></asp:label>
      <TABLE class=Innertext>
        <TR>
          <TD colSpan=2><FONT class=Titlefont 
            ><asp:literal id=NewQuestionTitle 
             runat="server" EnableViewState="False">New 
            question</asp:literal></FONT> <BR><IMG src="images/Linebreak.Gif" > </TD></TR>
        <TR>
          <TD>&nbsp;&nbsp; </TD>
          <TD>
            <TABLE class=Innertext>
              <tr>
                <td vAlign=top noWrap><b 
                  ><asp:literal id=QuestionLabel 
                   runat="server" 
                  EnableViewState="False">Question</asp:literal></b><br 
                  ><FTB:FREETEXTBOX id=QuestionFreeTextBox 
                   runat="server" 
                  ToolbarLayout="FontFacesMenu,FontSizesMenu,FontForeColorsMenu|Bold,Italic,Underline,Strikethrough;Superscript,Subscript,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink,InsertImage,InsertRule|Cut,Copy,Paste;Undo,Redo,Print" 
                  BreakMode="LineBreak" 
                  SupportFolder="~/aspnet_client/FreeTextBox/" Height="200px" 
                  ToolbarStyleConfiguration="Office2000"></FTB:FREETEXTBOX><br 
                  ></td></tr>
              <tr>
                <td noWrap><b 
                  ><asp:literal id=TypeLabel 
                   runat="server" 
                  EnableViewState="False">Type</asp:literal></b><br 
                  ><asp:dropdownlist id=QuestionDropDownList runat="server"></asp:dropdownlist></td></tr></TABLE></TD></TR></TABLE><br 
      ><asp:button id=AddQuestionButton runat="server" Text="Add new question" onclick="AddQuestionButton_Click"></asp:button><BR 
      ><BR>
      <TABLE class=Innertext>
        <TR>
          <TD colSpan=2><FONT class=Titlefont 
            ><asp:literal id=CopyExistingQuestionTitle 
             runat="server" EnableViewState="False">Copy 
            existing question</asp:literal></FONT> <BR><IMG src="images/Linebreak.Gif" > </TD></TR>
        <TR>
          <TD>&nbsp;&nbsp; </TD>
          <TD>
            <TABLE class=Innertext>
              <tr>
                <td vAlign=top noWrap height=13><asp:DropDownList id=SourceDropDownList runat="server" AutoPostBack="True" onselectedindexchanged="SourceDropDownList_SelectedIndexChanged"></asp:DropDownList></td></tr>
              <tr>
			<td><asp:dropdownlist id=SurveyListDropdownlist runat="server" AutoPostBack="True" Visible="False" onselectedindexchanged="SurveyListDropdownlist_SelectedIndexChanged"></asp:dropdownlist><asp:DropDownList id=LibraryDropDownList runat="server" Visible="False" AutoPostBack="True" onselectedindexchanged="LibraryDropDownList_SelectedIndexChanged"></asp:DropDownList>
		</td>
			  </tr>
			  <tr>
                <td noWrap><asp:dropdownlist id=SurveyQuestionListDropdownlist runat="server" Visible="False"></asp:dropdownlist><asp:DropDownList id=LibraryQuestionsDropDownList runat="server" Visible="False" ></asp:DropDownList></td></tr></TABLE></TD></TR></TABLE><br 
      ><asp:button id=CopyExistingQuestionButton runat="server" Text="Copy question to this survey" Enabled="False" onclick="CopyExistingQuestionButton_Click"></asp:button><BR 
      ><BR>
 <asp:PlaceHolder ID="ImportXmlQuestionPlaceHolder" Runat="server">
      <TABLE class=Innertext>
        <TR>
          <TD colSpan=2><FONT class=Titlefont><asp:literal id=ImportQuestionTitle runat="server" EnableViewState="False" Text="Import XML question"></asp:literal></FONT><BR><IMG 
            src="images/Linebreak.Gif"> </TD></TR>
        <TR>
          <TD>&nbsp;&nbsp; </TD>
          <TD>
            <TABLE class=Innertext>
              <TR>
                <TD vAlign=top noWrap width=55><INPUT id=ImportFile type=file 
                  runat="server"> </TD></TR>
              <TR></TR></TABLE></TD></TR></TABLE>
              <asp:button id=ImportXMLButton runat="server" Text="Import XML" onclick="ImportXMLButton_Click"></asp:button></asp:PlaceHolder></td></tr>
              </table>
</asp:Content>
